//
//  ZoomInImageView.m
//  NetImager
//
//  Created by li hongliang on 10-9-7.
//  Copyright 2010 sweet-home. All rights reserved.
//

#import "ZoomInImageView.h"


@implementation ZoomInImageView


//- (id)initWithFrame:(CGRect)frame {
//    if ((self = [super initWithFrame:frame])) {
//        // Initialization code
//    }
//    return self;
//}

- (id) initWithImage:(UIImage *)image {
	if(self = [super initWithImage:image])
	{
		self.userInteractionEnabled = YES;
	}
	return self;
}

- (void) touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
{
	for(UITouch *touch in touches)
	{
		if(touch.tapCount > 1)
		{
			//[[self.subviews objectAtIndex:0] setUserInteractionEnabled:YES];
			[self removeFromSuperview];
		}
	}
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (void)dealloc {
    [super dealloc];
}


@end
